package com.sdgakj.study.java20180827;

/**
 * @Author: Du Ronghong
 * @Description:
 * @Date: Created in 15:48 2018/8/27
 * @Modified By:
 */
public class LamdbaTest {

    public static void main(String[] args) {

        Test test = (a,b)->a+b;
        int a = test.add(1,2);
        System.out.println(a);

    }
}
@FunctionalInterface
interface Test{
    int add(int x,int b);
}
